#!/bin/sh

# start eureka-server
cd eureka-server
echo '' > start.log
nohup mvn spring-boot:run > start.log 2>&1 &
cd -
sleep 5
echo 'eureka-server starting ...'

# start cit-server
cd cit-server
echo '' > start.log
nohup mvn spring-boot:run > start.log 2>&1 &
cd -
echo 'cit-server starting ...'


# start feign-client
cd cit-client
echo '' > start.log
nohup mvn spring-boot:run > start.log 2>&1 &
cd -
echo 'cit-client starting , will sleep 5s...'
sleep 5
